<template>

  <div class="block2">
    <span class="demonstration"></span>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page.sync="currentPage3"
      :page-size="10"
      layout="prev, pager, next, jumper"
      :total="100">
    </el-pagination>
  </div>

</template>

<script>
 export default {
    methods: {
      handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
        this.$parent.pageSize=val
        this.$parent.getStuData()
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
         this.$parent.page=val
        this.$parent.getStuData()
      }
    },
    data() {
      return {
        currentPage1: 1,
        currentPage2: 1,
        currentPage3: 1,
        currentPage4: 1
      };
    }
  }
</script>

<style lang="less" scope>
.block2{
  background: #fff;
  text-align: center;
  padding: 22px 0 24px 0;
  .number {
  border: 1px solid #909399;
  border-radius: 5px;
  width: 24px;
  height: 24px;
  margin: 0 5px;
  padding: 0;
  min-width: 24px;
  line-height: 24px;
}
}

</style>